package com.ruoyi.community.service.impl;

import com.ruoyi.community.domain.EcRestaurants;
import com.ruoyi.community.mapper.EcRestaurantsMapper;
import com.ruoyi.community.service.RestaurantService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RestaurantServiceImpl implements RestaurantService {
    @Autowired
    EcRestaurantsMapper ecRestaurantsMapper;

    @Override
    public List<EcRestaurants> selectAllRestaurants() {
        return ecRestaurantsMapper.selectAllRestaurants();
    }

    @Override
    public int addRestaurant(EcRestaurants ecRestaurants) {
        return ecRestaurantsMapper.insert(ecRestaurants);
    }
}
